<template>
    <div>
        <button @click="test">这是测试组件</button>
    </div>
</template>

<script>
// import {ReqCategoryList} from '@/api/index'
import mockaxios from '@/api/mockaxios'
    export default {
        name:'sphTest',
        methods:{
            // async test(){
            //     let result = await ReqCategoryList()
            //     console.log(result);
            // }
            // async test(){
            //     let data = await axios.get('http://www.1024.com/floor')
            //     console.log(data);
            // }

            async test(){
                let data = await mockaxios.get('/slide')
                console.log(data);
            }
        }
    }
</script>

<style lang="less" scoped>

</style>